package com.study.base.empty_service

import android.app.Activity
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import com.study.base.service.IAccountService

/**
 * <pre>
 *     author : fauks
 *     time   : 2020/03/23
 *     desc   : 账户模块空实现
 * </pre>
 */
class EmptyAccountService : IAccountService {
    override fun isLogin(): Boolean {
        return false
    }

    override fun userId(name: String): String {
        return "default:$name"
    }

    override fun newLoginFragment(activity: Activity?, containerId: Int, manager: FragmentManager?, bundle: Bundle?, tag: String?): Fragment? {
        return null
    }
}